import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  name: 'index',
  component: () => import('../views/datav/index.vue'),
  children: [{
    path: "/",
    name: "datav",
    component: () => import("../views/datav/dataview.vue")
  }, {
    path: "/building",
    name: 'building',
    component: () => import('../views/building/index.vue')
  }, {
    path: "/estate",
    name: 'estate',
    component: () => import('../views/estate/Index.vue')
  },
  ]
}]
const router = new VueRouter({
  mode: "history",
  routes
})

export default router